<%-- 
    Document   : NouvelleDemandeInfo
    Created on : 27-avr.-2008, 17:12:06
    Author     : Laurent P.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title> ElectricServices Web - Détails interventions</title>
        <style type="text/css">
          <!--
            .styleHeader {
                    color: #FFFFFF;
                    font-weight: bold;
            }
            -->
        </style>


</head>
<body>

    <br>
    
    <table width="90%" border="4" align="center" cellpadding="0" cellspacing="0" bordercolor="#1071A5">
      <tr bgcolor="#1071A5">
        <td background="img/ligne.png">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr><td rowspan="2"><img src="img/demande.png" alt="Nouvelle demande" width="405" height="62"></td>
                <form action = "LogOut" method="POST"><td valign="top" align="right"><img src="img/logout.png" alt="Déconnecter" width="40" height="31" onclick="submit()"></td></form>
            </tr><tr>
                <form action = "Refresh" method="POST"><td valign="bottom" align="right"><img src="img/refresh.png" alt="Actualisé" width="40" height="31" onclick="submit()"></td></form>
        </tr> </table>
                </td>
      </tr>
      <tr>
        <td valign="top" background="img/fondln1.png"><br>
            
          <table width="95%" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#1071A5">
          <tr bgcolor="#1071A5" class="styleHeader">
            <td align="center">Demande d'une nouvelle intervention suivnat l'intervention: ${intervention.idIntervention}</td>
          </tr>
        </table>
        <br>
        <form action = "InterventionUpdateToClotureSuivi" method="POST">
        <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#1071A5">
        <tr valign="top"><td valign="top"><table width="100%" align="center" cellpadding="6" cellspacing="0">
          <tr  bgcolor="#1071A5" class="styleHeader">
            <td><div align="center">Demande</div></td>
          </tr>
          <tr>
            <td align="center"><textarea name="descriptionDemande" rows="8" cols="50" wrap="virtual"></textarea>
            </td>
          </tr>
          <tr>
            <td align="center"><div align="center"><strong>Priorité demande</strong> : 
              <select name="prioriteDemande" id="prioriteDemande">
                <option>F</option>
                <option>M</option>
                <option>U</option>
              </select>
              
            </div></td>
          </tr>
        </table></td>
    <td valign="top">
                <table width="100%" align="center" cellpadding="6" cellspacing="0">
                        <tr>
                        <td><strong>N. client :</strong></td>
                        <td>${intervention.IClient.idClient}</td>
                   </tr>
                        <c:forEach  var="listeS" items="${listeClientSociete}">              
                               <c:if test="${listeS.idClient == intervention.IClient.idClient}"> 		    	   
                                    <tr bgcolor="lightsteelblue">
                                        <td><strong>Nom société :</strong></td>
                                        <td>${listeS.nomSociete}</td>
                                    </tr>
                               </c:if>
                           </c:forEach>
                        <c:forEach  var="listeP" items="${listeParticulier}">              
                               <c:if test="${listeP.idClient == intervention.IClient.idClient}"> 		    	   
                                    <tr bgcolor="lightsteelblue">
                                        <td><strong>Nom société :</strong></td>
                                        <td>---</td>
                                    </tr>
                               </c:if>
                           </c:forEach>
			 <tr>
            <td><strong>Nom :</strong></td>
            <td>${intervention.IClient.nom}</td>
          </tr>
          <tr bgcolor="lightsteelblue">
            <td><strong>Prénom :</strong></td>
            <td>${intervention.IClient.prenom}</td>
          </tr>
          <tr>
            <td><strong>Tél :</strong></td>
            <td>${intervention.IClient.telephone}</td>
          </tr>
          <tr bgcolor="lightsteelblue">
            <td><strong>Rue :</strong></td>
            <td>${intervention.IAdresse.rue}</td>
        	</tr>
          <tr>
            <td><strong>Numéro :</strong></td>
            <td>${intervention.IAdresse.numero}</td>
          </tr>
          <tr bgcolor="lightsteelblue">
            <td><strong>Code postal :</strong></td>
            <td>${intervention.IAdresse.ICodePostal.codePostal}</td>
          </tr>
			<tr>
            <td><strong>Ville :</strong></td>
            <td>${intervention.IAdresse.ICodePostal.ville}</td>
          </tr>
        </table>        </td>
</tr>
        </table>
        <br>


                        
                        <table width="95%" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#1071A5">
                            <tr>  
                                <td align="center">
                                    <input type="submit" value="    Valider    ">
                                </td>
                            </tr></table></form>

        <br>
</td>
      </tr>
    </table>
    
    <p>&nbsp;</p>
  <p>&nbsp;</p>
    <p>&nbsp;</p>

</body>
</html>
